Skip to content

Adds interfaces for Dronekit-SITL - #347

Merged
mrpollo merged 3 commits into
masterfrom
tcr-parammod
Oct 14, 2015
Merged

mrpollo merged 3 commits into
masterfrom
tcr-parammod

Conversation

@tcr3dr

@tcr3dr tcr3dr commented Oct 14, 2015

Copy link
Copy Markdown
Contributor

Goal: Enable pysim support for Copter 3.2 and Solo builds in DroneKit-SITL. dronekit/dronekit-sitl#47

This adds

vehicle.parameters.set(name, value, retries=*)

This allows the number of retries to be specified. 0 is fire and forget. Normal is 3, i.e. wait three intervals up to three seconds each to see if it is loaded. This exposes the underlying machinery for parameter setting via vehicle.parameters[name] = value.

This also adds

vehicle.close()

Whose behavior is approximately correct, though should probably go through a round of bikeshedding to ensure it's correct.

@tcr3dr tcr3dr changed the title Adds undocumented interface for parameters setting. Adds interfaces for Dronekit-SITL Oct 14, 2015
@mrpollo

mrpollo commented Oct 14, 2015

Copy link
Copy Markdown
Member

awesome work

👍 🍰

mrpollo added a commit that referenced this pull request Oct 14, 2015
Adds interfaces for Dronekit-SITL
@mrpollo
mrpollo merged commit ffda1d1 into master Oct 14, 2015
@mrpollo
mrpollo deleted the tcr-parammod branch October 14, 2015 20:46
@hamishwillee hamishwillee mentioned this pull request Oct 15, 2015
23 tasks done
@hamishwillee

Copy link
Copy Markdown
Contributor

@tcr3dr Very nice. Would be handy to get something like this for armed and mode setting.I like returning an error over raising an exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants